setfenv(1, require'winapi.oo')
require'winapi.oo.control'
require'winapi.menus'

Menu = class(Control)

function Menu:__init(t)
	self.handle = CreateMenu()
end

function Menu:insertItem(k, item)
	self.__items[k] = item
	item.parent = self
end

function Menu:removeItem(k)
	item = self.__items[k]
	item.parent = nil
end

MenuItem = class(VObject)

function Menu:__init(t)

end

function MenuItem:setCaption(caption)
	--
end

function MenuItem:getCaption(caption)
	--
end

